<?php
?>
<div id="content">
    <div class="col1">
        <div class="col-padding">
        <?php
            $articleCount = 0;
            foreach($col1 as $article) {
                if(file_exists($article)) {
                        $this->load->file($article);
                        if($articleCount+1<count($col1)) {
                                echo "<div class=\"line-h vertical-separator\"></div>";
                            }
                        $articleCount++;
                    }
            }
            ?>
        </div>
    </div>
    <div class="col2">
        <div class="col-padding">
        <?php //list($id,$title,$startDate,$startTime,$endDate,$endTime,$short_description,$long_description,$locArr,$contactArr,$web) = $event[0]; ?>
        <?php 
            echo "title:" . $event[0]["title"] . "<br/>";
            echo "Start:" . $event[0]["startDate"] . " @ " . $event[0]["startTime"] . "<br/>";
            echo "End:" . $event[0]["endDate"] . " @ " . $event[0]["endTime"] . "<br/>";
            echo "Short Description:" . $event[0]["short_description"] . "<br/>";
            echo "Long Description:" . $event[0]["long_description"] . "<br/>";
            if($event[0]["locArr"])
                echo "Location:" . $event[0]["locArr"]["name"] . "<br/>";
            if($event[0]["contactArr"])
                echo "Contact Name:" . $event[0]["contactArr"]["name"] . "<br/>";
            echo "URL:" . $event[0]["web"] . "<br/>";
            
            ?>
            <a href="/events/modify/<?=$event[0]["id"]?>">Edit</a> | <a href="/events/remove/<?=$event[0]["id"]?>">Remove</a>
        </div>
    </div>
    <div class="col3">
        <div class="col-padding">
        <?php
            foreach($col3 as $article) {
                if(file_exists($article)) {
                        echo "<div class=\"line-h vertical-separator\"></div>";
                        $this->load->file($article);
                    }
            }
            ?>
        </div>
    </div>
</div>